package structural.proxy.cglib;

import structural.proxy.static1.IRunCallback;
import structural.proxy.static1.SparetimeRunner;

public class Test {
    public static void main(String[] args) {
        IRunCallback pRunner1 = new SparetimeRunner();
        CglibProxy proxy = new CglibProxy();
        IRunCallback pRunner2 = (IRunCallback) proxy.getInstance(pRunner1);
        pRunner2.run();
    }

}
